﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUSSINESS
{
   public class BUS_LoaiThanhTich
    {
        private DAO_LoaiThanhTich dao = new DAO_LoaiThanhTich();

        public DataTable getAllThanhTich()
        {
            return dao.getAllThanhTich();
        }

        public bool insertThanhTich(DTO_LoaiThanhTich thanhTich)
        {
            return dao.insertThanhTich(thanhTich);
        }

        public bool updateThanhTich(DTO_LoaiThanhTich thanhTich)
        {
            return dao.updateThanhTich(thanhTich);
        }

        public bool deleteThanhTich(DTO_LoaiThanhTich thanhTich)
        {
            return dao.deleteThanhTich(thanhTich);
        }
        public DataTable getThanhTichByName(string name)
        {
            return dao.getThanhTichByName(name);
        }
    }
}
